import Vue from 'vue'
import defineDirective from '@/directives'
import mixins from '@/mixins'
import Component from '@/components'

import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui'
import '@/assets/style/normalize.css'
import '@/assets/style/element-variables.scss'
import '@/assets/icons/iconfonts/iconfont.css'
import '@/assets/icons'
// https://blog.csdn.net/qq_45463384/article/details/119002386
import * as utils from '@/utils'
import request from '@/utils/request'
import animated from 'animate.css'
// 在main.js中全局初始化EventBus
Vue.prototype.$EventBus = new Vue()
Vue.use(Element)
Vue.use(defineDirective)
Vue.use(mixins)
Vue.use(Component)
Vue.use(animated)
Vue.config.productionTip = false

Vue.prototype.$req = request
Vue.prototype.$utils = utils
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
